package com.isljj.web_chat2.mapper;

import com.isljj.web_chat2.model.Friend;
import com.isljj.web_chat2.model.Message;
import com.isljj.web_chat2.model.SessionLastMessage;
import jakarta.security.auth.message.MessageInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SessionMapper {


    List<Integer> getSessionList(int userId);

    List<Friend> selectSessionFriends(Integer sessionId,Integer userId);

    String selectSessionLastMessage(Integer i ,Integer userId);

    Integer addASession(SessionLastMessage sessionLastMessage);


    List<Message> getHistoryMessage(Integer sessionId,Integer userId);

    void updateDate(int sessionId);

    void delete(Integer sessionId);
}
